<!--{eval $user = $this->session->userdata('user') ? $this->session->userdata('user') : ''}-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<!--{if $this->config->item('site_config')}-->
			<!--{eval $site_config = $this->config->item('site_config');}-->
		<!--{/if}-->
		<!--{if $this->config->item('site_config')}-->
			<!--{eval $site_categorys = $this->config->item('category');}-->
		<!--{/if}-->
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="keywords" content="{$site_config[seo_keywords]}" />
	<meta name="description" content="{$site_config[seo_description]}" />
	<meta name="generator" content="TDaye" />
	
<title>
	<!--{if isset($_TPL)}-->
		<!--{if isset($_TPL['titles'])}-->
			<!--{loop $_TPL['titles'] $value}-->
				<!--{if $value}-->$value - <!--{/if}-->
			<!--{/loop}-->
		<!--{/if}-->
	<!--{/if}-->
	<!--{if isset($site_config[seo_title])}-->
		{$site_config[seo_title]} - 
	<!--{/if}-->
	<!--{if isset($site_config[sitename])}-->
		{$site_config[sitename]}
	<!--{/if}-->
</title>
	
<!--960 start-->
<link href="<!--{eval echo base_url();}-->resources/css/reset.css" rel="stylesheet" type="text/css" media="all"/>
<link href="<!--{eval echo base_url();}-->resources/css/text.css" rel="stylesheet" type="text/css" media="all"/>
<link href="<!--{eval echo base_url();}-->resources/css/960_24_col.css" rel="stylesheet" type="text/css" media="all"/>	
<!--960 start-->
<link href="<!--{eval echo base_url();}-->resources/css/style.css" rel="stylesheet" type="text/css" media="all"/>
<script src="<!--{eval echo base_url();}-->resources/js/jquery.min.js" type="text/javascript"></script>
<script src="<!--{eval echo base_url();}-->resources/js/jquery.json.js" type="text/javascript"></script>
<script type="text/javascript">
	baseurl = "<!--{eval echo base_url();}-->";
</script>
</head>
<body>
<div id="header" class="container_24">
	<div class="headerbar">
		<div class="container_24 headerwarp">
			<div class="grid_9 alpha logo"><a href="{SITEURL}"><img src="{SITEURL}/resources/images/logo.gif" /></a></div>
			<div class="grid_15 omega account">
				<!--{if isset($user['name'])}-->
				<!--{if $user['groupid'] == 1}-->
					<a class="menuitem" href="{SITEURL}admin/login">高级管理</a>
				<!--{/if}-->
				<a class="menuitem" href="{SITEURL}logout/index">退出</a>
				<a class="menuitem" href="{SITEURL}pm/index/">T邮
					<!--{if $user[newpm]}--><span class="o ored">{$user[newpm]}</span><!--{/if}-->
				</a>
				<!--{if $user[notenum]}-->
					<a class="menuitem" href="{SITEURL}notice/index/?ignore=1">
						提醒<span class="o ored">{$user[notenum]}</span>
					</a>
				<!--{else}-->
					<a class="menuitem" href="{SITEURL}notice/index/">提醒</a>
				<!--{/if}-->
				<a href="{SITEURL}invite/index/">邀请<span class="o <!--{if $user[invitetime]}-->oblue<!--{else}-->ored<!--{/if}-->">$user[invitetime]</span></a>
				<a class="menuitem" href="{SITEURL}setting/">{$user[name]}的帐号</a>
				<!--{/if}-->
			</div>
			<div class="grid_15 omega menu">
				<ul>
					<!--{eval $action = $this->uri->segment(1);}-->
					
					<li><a class="menuitem <!--{if $action == ''|| $action == 'index'}--> active<!--{/if}-->" href="{SITEURL}index/">T恤衫</a></li>
				<!--{if isset($user['name'])}-->
					<li><a class="menuitem <!--{if $action == 'home'}--> active<!--{/if}-->" href="{SITEURL}home/index/">我的主页</a></li>
					<li><a class="menuitem <!--{if $action == 'imin'}--> active<!--{/if}-->" href="{SITEURL}imin/index/">我来参与</a></li>
					<li>
						<form action="{SITEURL}search/index/" method="get" accept-charset="utf-8">				
							<div class="grid_5 headsearchbar">
								<input type="text" name="searchkey" value="" id="searchkey" class="searchkey">
								<input type="hidden" value="all" name="searchtype"/>
								<input type="submit" name="searchsubmit" value="搜索" id="searchsubmit" class="searchsubmit">
							</div>
						</form>

					</li>
				<!--{else}-->
					<li><a class="menuitem" href="{SITEURL}login/index">登录</a></li>
				<!--{/if}-->
				</ul>
			</div>		
			<div class="clear"></div>
		</div>
	</div>
</div>
<div id="main" class="container_24">